﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class SearchBaidu : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Session["UserID"] == null)
            {
                div_LoginOk.Visible = false;

            }
            else
            {
                div_NoLogin.Visible = false;
            }
        }
    }

    protected void Btn_SCompany_Click(object sender, EventArgs e)
    {
        if (Txb_Company.Text.ToString() == "")
        {
            return;

        }
        else
        {

            string str = "CompanyList.aspx?kw=" + Txb_Company.Text.ToString();
            Response.Redirect(str);
        }
    }

    protected void Btn_SOrg_Click(object sender, EventArgs e)
    {

        if (Txb_Org.Text.ToString() == "")
        {
            return;

        }
        else
        {
            string str = "OrgList.aspx?kw=" + Txb_Org.Text.ToString();
            Response.Redirect(str);
        }
        
    }


    protected void Btn_SShop_Click(object sender, EventArgs e)
    {

        if (Txb_Shop.Text.ToString() == "")
        {
            return;

        }
        else
        {
            string str = "ShopList.aspx?kw=" + Txb_Shop.Text.ToString();
            Response.Redirect(str);
        }
        
    }

    protected void Btn_SPersion_Click(object sender, EventArgs e)
    {

        if (Txb_Persion.Text.ToString() == "")
        {
            return;

        }
        else
        {
            string str = "PersionList.aspx?kw=" + Txb_Persion.Text.ToString();
            Response.Redirect(str);

        }
    }

}
